package evo.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.Date;

@Controller
public class UserController {

    @RequestMapping(value = "/test")
    public ModelAndView test(){
        ModelAndView mv = new ModelAndView();
        mv.addObject("time",new Date());
        mv.addObject("data","SpringBoot JOJO");
        mv.setViewName("function");
        return mv;
    }
}
